package com.zareal.ymcc.feign;

import com.zareal.ymcc.fallback.CourseMarketFeignClientFallbackFactory;
import com.zareal.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(contextId = "course-market",value = "service-course",fallbackFactory = CourseMarketFeignClientFallbackFactory.class)
public interface CourseMarketFeignClient {
    /**
     * 获取对象
     */
    @RequestMapping(value = "/courseMarket/{courseId}",method = RequestMethod.GET)
    JSONResult get(@PathVariable("courseId")Long courseId);

}
